﻿using System;
using System.Collections.Generic;
using System.Text;
using NLBS.Entity;

namespace NLBS.Views
{
    /// <summary>
    /// 留言本事件参数类
    /// </summary>
    public class GuestBookEventArgs : EventArgs
    {
        public GuestBookEventArgs() { }

        public GuestBookEventArgs(GuestBook gbook)
        {
            this._gbook = gbook;
        }

        private GuestBook _gbook;
        /// <summary>
        /// 当前留言
        /// </summary>
        public GuestBook InserGbook
        {
            get
            {
                return _gbook;
            }
        }
    }
    /// <summary>
    /// 包含留言本更新时的事件数据
    /// </summary>
    public class GuestBookUpdateEventArgs : GuestBookEventArgs
    {
        public GuestBookUpdateEventArgs(GuestBook book)
            : base(book)
        {
        }
    }

    /// <summary>
    /// 包含留言本删除时的事件数据
    /// </summary>
    public class GuestBookDeleteEventArgs : GuestBookEventArgs
    {
        public GuestBookDeleteEventArgs(GuestBook book)
            : base(book)
        {
        }
    }
    /// <summary>
    /// 包含留言本选中时的事件数据
    /// </summary>
    public class GuestBookSelectEventArgs : GuestBookEventArgs
    {
        public GuestBookSelectEventArgs(GuestBook book)
            : base(book)
        {
        }
    }
    /// <summary>
    /// 包含留言本添加插入时的事件数据
    /// </summary>
    public class GuestBookInsertEventArgs : GuestBookEventArgs
    {
        public GuestBookInsertEventArgs(GuestBook book)
            : base(book)
        {
        }
    }

}
